import Request from '@/api/request'
var request = new Request().http

//获取积分明细
export function getPointsDetails() {
	return request({
		url: "/applet/exchange/getPointsDetails",
		method: "Get"
	})
}

//兑换记录
export function getExchange(data: any) {
	return request({
		url: "/applet/exchange/getExchange",
		method: "Get",
		data
	})
}

//兑换详情 
export function getExchangeInfo(data: any) {
	return request({
		url: "/applet/exchange/getExchangeInfo",
		method: "Get",
		data
	})
}

//积分兑换
export function redeemPoints(data: any) {
	return request({
		url: "/applet/exchange/redeemPoints",
		method: "Post",
		data
	})
}